package com.grass.p019lv.databinding;

import android.support.p007v4.media.session.PlaybackStateCompat;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.LifecycleOwner;
import androidx.recyclerview.widget.RecyclerView;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.UserInfo;
import com.androidx.p013lv.base.bean.VideoBean;
import com.androidx.p013lv.player.view.VideoPlayer;
import com.grass.p019lv.activity.VideoPlayActivity;
import com.grass.p019lv.generated.callback.OnClickListener;

/* renamed from: com.grass.lv.databinding.ActivityVideoPlayLayoutBindingImpl */
public class ActivityVideoPlayLayoutBindingImpl extends ActivityVideoPlayLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback10;
    private final View.OnClickListener mCallback8;
    private final View.OnClickListener mCallback9;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final RelativeLayout mboundView1;
    private final VideoPlayerWatchNumLayoutBinding mboundView11;
    private final LinearLayout mboundView111;
    private final VideoPlayerVipLayoutBinding mboundView12;
    private final VideoPlayerBuyLeaseLayoutBinding mboundView13;
    private final VideoBtnLeaseBuyViewBinding mboundView14;
    private final LinearLayout mboundView2;
    private final View mboundView3;
    private final LinearLayout mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView7;
    private final ImageView mboundView9;

    static {
        ViewDataBinding.IncludedLayouts includedLayouts = new ViewDataBinding.IncludedLayouts(22);
        sIncludes = includedLayouts;
        includedLayouts.setIncludes(1, new String[]{"video_player_watch_num_layout", "video_player_vip_layout", "video_player_buy_lease_layout", "video_btn_lease_buy_view"}, new int[]{13, 14, 15, 16}, new int[]{R.layout.video_player_watch_num_layout, R.layout.video_player_vip_layout, R.layout.video_player_buy_lease_layout, R.layout.video_btn_lease_buy_view});
        sIncludes.setIncludes(2, new String[]{"video_player_details_layout"}, new int[]{12}, new int[]{R.layout.video_player_details_layout});
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.toolbar, 17);
        sViewsWithIds.put(R.id.scroll_view, 18);
        sViewsWithIds.put(R.id.rl_ad, 19);
        sViewsWithIds.put(R.id.iv_ad, 20);
        sViewsWithIds.put(R.id.tv_ad, 21);
    }

    public ActivityVideoPlayLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 22, sIncludes, sViewsWithIds));
    }

    private ActivityVideoPlayLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 3, (VideoPlayerDetailsLayoutBinding) objArr[12], (ImageView) objArr[20], (RecyclerView) objArr[8], (VideoPlayer) objArr[10], (RelativeLayout) objArr[19], (NestedScrollView) objArr[18], (Toolbar) objArr[17], (TextView) objArr[21], (RecyclerView) objArr[6]);
        this.mDirtyFlags = -1;
        this.likeRecycler.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        RelativeLayout relativeLayout = (RelativeLayout) objArr[1];
        this.mboundView1 = relativeLayout;
        relativeLayout.setTag(null);
        VideoPlayerWatchNumLayoutBinding videoPlayerWatchNumLayoutBinding = (VideoPlayerWatchNumLayoutBinding) objArr[13];
        this.mboundView11 = videoPlayerWatchNumLayoutBinding;
        setContainedBinding(videoPlayerWatchNumLayoutBinding);
        LinearLayout linearLayout2 = (LinearLayout) objArr[11];
        this.mboundView111 = linearLayout2;
        linearLayout2.setTag(null);
        VideoPlayerVipLayoutBinding videoPlayerVipLayoutBinding = (VideoPlayerVipLayoutBinding) objArr[14];
        this.mboundView12 = videoPlayerVipLayoutBinding;
        setContainedBinding(videoPlayerVipLayoutBinding);
        VideoPlayerBuyLeaseLayoutBinding videoPlayerBuyLeaseLayoutBinding = (VideoPlayerBuyLeaseLayoutBinding) objArr[15];
        this.mboundView13 = videoPlayerBuyLeaseLayoutBinding;
        setContainedBinding(videoPlayerBuyLeaseLayoutBinding);
        VideoBtnLeaseBuyViewBinding videoBtnLeaseBuyViewBinding = (VideoBtnLeaseBuyViewBinding) objArr[16];
        this.mboundView14 = videoBtnLeaseBuyViewBinding;
        setContainedBinding(videoBtnLeaseBuyViewBinding);
        LinearLayout linearLayout3 = (LinearLayout) objArr[2];
        this.mboundView2 = linearLayout3;
        linearLayout3.setTag(null);
        View view2 = (View) objArr[3];
        this.mboundView3 = view2;
        view2.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[4];
        this.mboundView4 = linearLayout4;
        linearLayout4.setTag(null);
        TextView textView = (TextView) objArr[5];
        this.mboundView5 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[7];
        this.mboundView7 = textView2;
        textView2.setTag(null);
        ImageView imageView = (ImageView) objArr[9];
        this.mboundView9 = imageView;
        imageView.setTag(null);
        this.player.setTag(null);
        this.worksRecycler.setTag(null);
        setRootTag(view);
        this.mCallback8 = new OnClickListener(this, 1);
        this.mCallback10 = new OnClickListener(this, 3);
        this.mCallback9 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 1024;
        }
        this.detailVideo.invalidateAll();
        this.mboundView11.invalidateAll();
        this.mboundView12.invalidateAll();
        this.mboundView13.invalidateAll();
        this.mboundView14.invalidateAll();
        requestRebind();
    }

    /* JADX WARNING: Code restructure failed: missing block: B:11:0x001c, code lost:
        if (r6.mboundView11.hasPendingBindings() == false) goto L_0x001f;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x001e, code lost:
        return true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x0025, code lost:
        if (r6.mboundView12.hasPendingBindings() == false) goto L_0x0028;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:15:0x0027, code lost:
        return true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:17:0x002e, code lost:
        if (r6.mboundView13.hasPendingBindings() == false) goto L_0x0031;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:18:0x0030, code lost:
        return true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x0037, code lost:
        if (r6.mboundView14.hasPendingBindings() == false) goto L_0x003a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:21:0x0039, code lost:
        return true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:22:0x003a, code lost:
        return false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x0013, code lost:
        if (r6.detailVideo.hasPendingBindings() == false) goto L_0x0016;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0015, code lost:
        return true;
     */
    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (107 == i) {
            setLikeStatus((Integer) obj);
        } else if (170 == i) {
            setStatus((Integer) obj);
        } else if (191 == i) {
            setUserInfo((UserInfo) obj);
        } else if (196 == i) {
            setVideoBean((VideoBean) obj);
        } else if (159 == i) {
            setRelateStatus((Integer) obj);
        } else if (83 == i) {
            setHeight((Integer) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((VideoPlayActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setLikeStatus(Integer num) {
        this.mLikeStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(107);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(170);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setUserInfo(UserInfo userInfo) {
        this.mUserInfo = userInfo;
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setVideoBean(VideoBean videoBean) {
        updateRegistration(1, videoBean);
        this.mVideoBean = videoBean;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(196);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setRelateStatus(Integer num) {
        this.mRelateStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 32;
        }
        notifyPropertyChanged(159);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setHeight(Integer num) {
        this.mHeight = num;
        synchronized (this) {
            this.mDirtyFlags |= 64;
        }
        notifyPropertyChanged(83);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVideoPlayLayoutBinding
    public void setClick(VideoPlayActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 128;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void setLifecycleOwner(LifecycleOwner lifecycleOwner) {
        super.setLifecycleOwner(lifecycleOwner);
        this.detailVideo.setLifecycleOwner(lifecycleOwner);
        this.mboundView11.setLifecycleOwner(lifecycleOwner);
        this.mboundView12.setLifecycleOwner(lifecycleOwner);
        this.mboundView13.setLifecycleOwner(lifecycleOwner);
        this.mboundView14.setLifecycleOwner(lifecycleOwner);
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i == 0) {
            return onChangeUserInfo((UserInfo) obj, i2);
        }
        if (i == 1) {
            return onChangeVideoBean((VideoBean) obj, i2);
        }
        if (i != 2) {
            return false;
        }
        return onChangeDetailVideo((VideoPlayerDetailsLayoutBinding) obj, i2);
    }

    private boolean onChangeUserInfo(UserInfo userInfo, int i) {
        if (i != 0) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        return true;
    }

    private boolean onChangeVideoBean(VideoBean videoBean, int i) {
        if (i == 0) {
            synchronized (this) {
                this.mDirtyFlags |= 2;
            }
            return true;
        } else if (i == 152) {
            synchronized (this) {
                this.mDirtyFlags |= 256;
            }
            return true;
        } else if (i != 25) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 512;
            }
            return true;
        }
    }

    private boolean onChangeDetailVideo(VideoPlayerDetailsLayoutBinding videoPlayerDetailsLayoutBinding, int i) {
        if (i != 0) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        return true;
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:101:0x014b  */
    /* JADX WARNING: Removed duplicated region for block: B:104:0x016b  */
    /* JADX WARNING: Removed duplicated region for block: B:107:0x0186  */
    /* JADX WARNING: Removed duplicated region for block: B:110:0x019f  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x01aa  */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x004a  */
    /* JADX WARNING: Removed duplicated region for block: B:31:0x0061  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x006a  */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x0090  */
    /* JADX WARNING: Removed duplicated region for block: B:50:0x0095  */
    /* JADX WARNING: Removed duplicated region for block: B:53:0x009f  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x00bc  */
    /* JADX WARNING: Removed duplicated region for block: B:67:0x00c3  */
    /* JADX WARNING: Removed duplicated region for block: B:81:0x00e4  */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x00ea  */
    /* JADX WARNING: Removed duplicated region for block: B:86:0x00f2  */
    /* JADX WARNING: Removed duplicated region for block: B:89:0x00fa  */
    /* JADX WARNING: Removed duplicated region for block: B:92:0x0103  */
    /* JADX WARNING: Removed duplicated region for block: B:95:0x0124  */
    /* JADX WARNING: Removed duplicated region for block: B:98:0x013b  */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        long j2;
        boolean z;
        long j3;
        int i2;
        int i3;
        long j4;
        boolean z2;
        long j5;
        int i4;
        long j6;
        int i5;
        boolean z3;
        int i6;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mLikeStatus;
        Integer num2 = this.mStatus;
        VideoBean videoBean = this.mVideoBean;
        Integer num3 = this.mRelateStatus;
        Integer num4 = this.mHeight;
        VideoPlayActivity.OnClick onClick = this.mClick;
        long j7 = j & 1032;
        int i7 = 8;
        if (j7 != 0) {
            boolean z4 = ViewDataBinding.safeUnbox(num) == 0;
            if (j7 != 0) {
                j |= z4 ? 65536 : 32768;
            }
            if (z4) {
                i = 8;
                j2 = j & 1810;
                if (j2 == 0) {
                    z = ViewDataBinding.safeUnbox(num2) == 3;
                    if (j2 != 0) {
                        j = z ? j | 16384 : j | 8192;
                    }
                } else {
                    z = false;
                }
                j3 = j & 1056;
                if (j3 != 0) {
                    boolean z5 = ViewDataBinding.safeUnbox(num3) == 0;
                    if (j3 != 0) {
                        j |= z5 ? PlaybackStateCompat.ACTION_SET_CAPTIONING_ENABLED : PlaybackStateCompat.ACTION_SET_SHUFFLE_MODE_ENABLED;
                    }
                    if (z5) {
                        i2 = 8;
                        if ((j & 1088) != 0) {
                            i3 = ViewDataBinding.safeUnbox(num4);
                        } else {
                            i3 = 0;
                        }
                        j4 = j & 8192;
                        if (j4 != 0) {
                            if (videoBean != null) {
                                i6 = videoBean.getReasonType();
                            } else {
                                i6 = 0;
                            }
                            z2 = i6 == 3;
                            if (j4 != 0) {
                                j = z2 ? j | PlaybackStateCompat.ACTION_SET_REPEAT_MODE : j | 131072;
                            }
                        } else {
                            z2 = false;
                        }
                        j5 = j & PlaybackStateCompat.ACTION_SET_REPEAT_MODE;
                        if (j5 != 0) {
                            if (videoBean != null) {
                                z3 = videoBean.isCanWatch();
                            } else {
                                z3 = false;
                            }
                            if (j5 != 0) {
                                j |= z3 ? 4096 : 2048;
                            }
                            if (z3) {
                                i4 = 8;
                                if ((j & 8192) != 0) {
                                    i4 = 0;
                                } else if (!z2) {
                                    i4 = 8;
                                }
                                j6 = 1810 & j;
                                if (j6 == 0) {
                                    if (!z) {
                                        i7 = i4;
                                    }
                                    i5 = i7;
                                } else {
                                    i5 = 0;
                                }
                                if ((j & 1152) != 0) {
                                    this.detailVideo.setClick(onClick);
                                    this.mboundView11.setClick(onClick);
                                    this.mboundView12.setClick(onClick);
                                    this.mboundView13.setClick(onClick);
                                    this.mboundView14.setClick(onClick);
                                }
                                if ((j & 1026) != 0) {
                                    this.detailVideo.setVideoBean(videoBean);
                                    this.mboundView13.setVideoBean(videoBean);
                                    this.mboundView14.setVideoBean(videoBean);
                                }
                                if ((j & 1032) != 0) {
                                    this.likeRecycler.setVisibility(i);
                                    this.mboundView7.setVisibility(i);
                                }
                                if ((j & 1088) != 0) {
                                    this.mboundView11.setHeight(num4);
                                    this.mboundView12.setHeight(num4);
                                    this.mboundView13.setHeight(num4);
                                    VideoPlayActivity.setViewHeight(this.mboundView3, i3);
                                    VideoPlayActivity.setViewHeight(this.player, i3);
                                }
                                if ((1040 & j) != 0) {
                                    this.mboundView11.setStatus(num2);
                                    this.mboundView12.setStatus(num2);
                                    this.mboundView13.setStatus(num2);
                                    this.mboundView14.setStatus(num2);
                                }
                                if ((1024 & j) != 0) {
                                    this.mboundView111.setOnClickListener(this.mCallback10);
                                    this.mboundView5.setOnClickListener(this.mCallback8);
                                    this.mboundView9.setOnClickListener(this.mCallback9);
                                }
                                if (j6 != 0) {
                                    this.mboundView111.setVisibility(i5);
                                }
                                if ((j & 1056) != 0) {
                                    this.mboundView4.setVisibility(i2);
                                    this.worksRecycler.setVisibility(i2);
                                }
                                executeBindingsOn(this.detailVideo);
                                executeBindingsOn(this.mboundView11);
                                executeBindingsOn(this.mboundView12);
                                executeBindingsOn(this.mboundView13);
                                executeBindingsOn(this.mboundView14);
                            }
                        }
                        i4 = 0;
                        if ((j & 8192) != 0) {
                        }
                        j6 = 1810 & j;
                        if (j6 == 0) {
                        }
                        if ((j & 1152) != 0) {
                        }
                        if ((j & 1026) != 0) {
                        }
                        if ((j & 1032) != 0) {
                        }
                        if ((j & 1088) != 0) {
                        }
                        if ((1040 & j) != 0) {
                        }
                        if ((1024 & j) != 0) {
                        }
                        if (j6 != 0) {
                        }
                        if ((j & 1056) != 0) {
                        }
                        executeBindingsOn(this.detailVideo);
                        executeBindingsOn(this.mboundView11);
                        executeBindingsOn(this.mboundView12);
                        executeBindingsOn(this.mboundView13);
                        executeBindingsOn(this.mboundView14);
                    }
                }
                i2 = 0;
                if ((j & 1088) != 0) {
                }
                j4 = j & 8192;
                if (j4 != 0) {
                }
                j5 = j & PlaybackStateCompat.ACTION_SET_REPEAT_MODE;
                if (j5 != 0) {
                }
                i4 = 0;
                if ((j & 8192) != 0) {
                }
                j6 = 1810 & j;
                if (j6 == 0) {
                }
                if ((j & 1152) != 0) {
                }
                if ((j & 1026) != 0) {
                }
                if ((j & 1032) != 0) {
                }
                if ((j & 1088) != 0) {
                }
                if ((1040 & j) != 0) {
                }
                if ((1024 & j) != 0) {
                }
                if (j6 != 0) {
                }
                if ((j & 1056) != 0) {
                }
                executeBindingsOn(this.detailVideo);
                executeBindingsOn(this.mboundView11);
                executeBindingsOn(this.mboundView12);
                executeBindingsOn(this.mboundView13);
                executeBindingsOn(this.mboundView14);
            }
        }
        i = 0;
        j2 = j & 1810;
        if (j2 == 0) {
        }
        j3 = j & 1056;
        if (j3 != 0) {
        }
        i2 = 0;
        if ((j & 1088) != 0) {
        }
        j4 = j & 8192;
        if (j4 != 0) {
        }
        j5 = j & PlaybackStateCompat.ACTION_SET_REPEAT_MODE;
        if (j5 != 0) {
        }
        i4 = 0;
        if ((j & 8192) != 0) {
        }
        j6 = 1810 & j;
        if (j6 == 0) {
        }
        if ((j & 1152) != 0) {
        }
        if ((j & 1026) != 0) {
        }
        if ((j & 1032) != 0) {
        }
        if ((j & 1088) != 0) {
        }
        if ((1040 & j) != 0) {
        }
        if ((1024 & j) != 0) {
        }
        if (j6 != 0) {
        }
        if ((j & 1056) != 0) {
        }
        executeBindingsOn(this.detailVideo);
        executeBindingsOn(this.mboundView11);
        executeBindingsOn(this.mboundView12);
        executeBindingsOn(this.mboundView13);
        executeBindingsOn(this.mboundView14);
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            VideoPlayActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.relatedWorksMore();
            }
        } else if (i == 2) {
            VideoPlayActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.buyVip();
            }
        } else if (i == 3) {
            VideoPlayActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.buyVip();
            }
        }
    }
}
